define(function(require) {

	var $ = require("jquery");
	
	var justep = require("$UI/system/lib/justep");
	
	var ShellImpl = require('$UI/system/lib/portal/shellImpl');
	   //超级变量并本地存储
<<<<<<< HEAD
       // localStorage.yuming="116.117.157.186:25819";      
      //  localStorage.imgshou="116.117.157.186:25819/files";
      //全局变量不用本地存储
      /* window.yuming="https://nda.etkqqzhdj.gov.cn:8443";
       window.webyuming="nda.etkqqzhdj.gov.cn:8443";
       window.imgshou="https://nda.etkqqzhdj.gov.cn:8443/files";*/
	window.yuming="http://192.168.31.236:8081";
    window.webyuming="192.168.31.236:8081";
    window.imgshou="http://192.168.31.236:8081/files";
=======
	   	window.yuming="http://192.168.31.236:8081";      
        window.imgshou="http://192.168.31.236:8081/files";
//        window.yuming="116.117.157.186:25819";      
//        window.imgshou="116.117.157.186:25819/files";
      //全局变量不用本地存储
//       window.yuming="https://nda.etkqqzhdj.gov.cn:8443";
//       window.webyuming="nda.etkqqzhdj.gov.cn:8443";
//       window.imgshou="https://nda.etkqqzhdj.gov.cn:8443/files";
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
       
	var Model = function() {
	   
		this.callParent();
		var shellImpl = new ShellImpl(this, {
		
			"contentsXid" : "pages",
			
			"pageMappings" : {
			
				"main" : {
					url : require.toUrl('./main.w')
				},
				"yaodian" : {
					url : require.toUrl('./m/cannel/yaodian.w')
				},
				"zhuanjia" : {
					url : require.toUrl('./m/cannel/zhuanjia.w')
				},
				//公用页面
				"login" : {
					url : require.toUrl('./g/login.w')
				},
				"register" : {
					url : require.toUrl('./g/register.w')
				},
				"xiaoxi" : {
					url : require.toUrl('./g/xiaoxi.w')
				},
				"about" : {
					url : require.toUrl('./g/about.w')
				},
				"shezhi" : {
					url : require.toUrl('./g/shezhi.w')
				},
				"shiroom" : {
					url : require.toUrl('./g/shiroom.w')
<<<<<<< HEAD
				},
				"zsroom" : {
					url : require.toUrl('./g/zsroom.w')
=======
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
				}
				//专家个人中心页面
				,
				"zgrenwu" : {
					url : require.toUrl('./zg/zgrenwu.w')
				},
				"zgzhenguan" : {
					url : require.toUrl('./zg/zgzhenguan.w')
				},
				"wanshan" : {
					url : require.toUrl('./zg/wanshan.w')
				},
				"editzhenduan" : {
					url : require.toUrl('./zg/editzhenduan.w')
				},
				"addzhenduan" : {
					url : require.toUrl('./zg/addzhenduan.w')
				},
				"zgwenzhang" : {
					url : require.toUrl('./zg/zgwenzhang.w')
				},
				"editwenzhang" : {
					url : require.toUrl('./zg/editwenzhang.w')
				},
				"zgzhibo" : {
					url : require.toUrl('./zg/zgzhibo.w')
				},
				"shoucang" : {
<<<<<<< HEAD
					url : require.toUrl('./zg/shoucang.w')
=======
					url : require.toUrl('./g/shoucang.w')
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
				},
				"zgindex" : {
					url : require.toUrl('./zg/zgindex.w')
				},
				"yaocar" : {
					url : require.toUrl('./zg/yaocar.w')
				}
				//牧民个人中心页面
				,
				"mmgwanshan" : {
					url : require.toUrl('./mmg/mmgwanshan.w')
				},
				"mmgindex" : {
					url : require.toUrl('./mmg/mmgindex.w')
				},
				"renwu" : {
					url : require.toUrl('./mmg/renwu.w')
				},
				"mmgzhenduan" : {
					url : require.toUrl('./mmg/mmgzhenduan.w')
				}
				//药店个人中心页面
				,
				"ygindex" : {
					url : require.toUrl('./yg/ygindex.w')
				},
				"ygrenwu" : {
					url : require.toUrl('./yg/ygrenwu.w')
				},
				"ygwanshan" : {
					url : require.toUrl('./yg/ygwanshan.w')
				},
				"ygrenzheng" : {
					url : require.toUrl('./yg/ygrenzheng.w')
				},
				"ygyaofang" : {
					url : require.toUrl('./yg/ygyaofang.w')
				},
				"ygyaopin" : {
					url : require.toUrl('./yg/ygyaopin.w')
				},
				"edityaopin" : {
					url : require.toUrl('./yg/edityaopin.w')
				}
				//首页页面
				,
				"zhenduanlie" : {
					url : require.toUrl('./shou/zhenduanlie.w')
				},
				"yaodianlie" : {
					url : require.toUrl('./shou/yaodianlie.w')
				},
				"xuexilie" : {
					url : require.toUrl('./shou/xuexilie.w')
				}
			}
		})

	};

	Model.prototype.modelLoad = function(event){
<<<<<<< HEAD
			
=======
				
>>>>>>> db50113a5feef0605bbbc3a649d7e9809a12c455
		justep.Shell.showPage("main");
		
	};

	return Model;
});